package top.jiachunlei.adapter.lesson2;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/12/7 22:56
 */
public class Adapter implements Ps2
{
    //把要转换的接口聚合进来
    private Usb usb;

    public Adapter(Usb usb)
    {
        this.usb = usb;
    }

    @Override
    public void isPs2()
    {
        usb.isUsb();
    }
}
